package com.phonetools.commonutils.android.hardware

import android.content.Context
import android.location.LocationManager
import com.phonetools.commonutils.android.getLocationManager

/**
 * 位置服务开关是否启用
 * @return Boolean
 */
fun isLocEnable(context: Context): Boolean {
    val locationManager = getLocationManager(context)
    return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)
}
